package lab02.test30;

import java.util.InputMismatchException;
import java.util.Scanner;

public class Test30 {
    public static void main(String[] args) {
        try {
            System.out.println("请输入你的double类型的英语成绩：");
            Scanner acore = new Scanner(System.in);
            double English = acore.nextDouble();
            System.out.println("请输入你的double类型的数学成绩：");
            double Math = acore.nextDouble();
            System.out.println("请输入你的double类型的语文成绩：");
            double Chinese = acore.nextDouble();
            double everage=(English+Math+Chinese)/3;
            System.out.println("平均分="+everage);
        }catch (InputMismatchException e){
            System.out.println("输入数据类型错误");
        }
    }
}